Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add modifiable settings #30

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Add modifiable settings #30

merged 1 commit into from
Oct 22, 2024

Conversation

lkeegan
Copy link
Member

@lkeegan lkeegan commented Oct 21, 2024

  • add Settings model to database
    • have a single instance of this in the database
    • on startup create with default values if not already present in database
  • add endpoints
    • get /settings returns the settings
      • used by frontend
    • post /admin/settings overwrites the settings with the supplied values
      • used by admin frontend
  • allow admins to modify the settings in the frontend admin interface
    • lists are represented as semi-colon delimited strings
  • resolves Settings editable by admins #13
  • also add global_quota to Settings, resolves add global quota? #22

- add `Settings` model to database
  - have a single instance of this in the database
  - on startup create with default values if not already present in database
- add endpoints
  - get `/settings` returns the settings
    - used by frontend
  - post `/admin/settings` overwrites the settings with the supplied values
    - used by admin frontend
- allow admins to modify the settings in the frontend admin interface
  - lists are represented as semi-colon delimited strings
- resolves #13
- also add `global_quota` to Settings, resolves #22
@lkeegan lkeegan merged commit 309ddb2 into main Oct 22, 2024
5 checks passed
@lkeegan lkeegan deleted the fix_13_settings branch October 22, 2024 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add global quota? Settings editable by admins
1 participant